package com.lynn.springboot_demo;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.scheduling.annotation.EnableAsync;

@SpringBootApplication
//打开异步任务开关
@EnableAsync
//扫描mapper包下的映射接口
@MapperScan("com.lynn.springboot_demo.mapper")
public class SpringbootDemoApplication {

    public static void main(String[] args) {
        SpringApplication.run(SpringbootDemoApplication.class, args);
        System.out.println("\n" +
                "███████╗██╗   ██╗ ██████╗ ██████╗███████╗███████╗███████╗\n" +
                "██╔════╝██║   ██║██╔════╝██╔════╝██╔════╝██╔════╝██╔════╝\n" +
                "███████╗██║   ██║██║     ██║     █████╗  ███████╗███████╗\n" +
                "╚════██║██║   ██║██║     ██║     ██╔══╝  ╚════██║╚════██║\n" +
                "███████║╚██████╔╝╚██████╗╚██████╗███████╗███████║███████║\n" +
                "╚══════╝ ╚═════╝  ╚═════╝ ╚═════╝╚══════╝╚══════╝╚══════╝\n" +
                "                                                         \n");
    }


}
